<include file="header" />
<div class="wraper" js="wapjs/base/print/js/dispatch">
	<div class="head clearfix">
		<a href="javascript:history.go(-1);" class="iconfont icon-zuo pull-left"></a> <span
			class="head-name pull-left">订单中心</span> <a href="javascript:history.go(-1);"
			class="pull-left text-right"></a>
	</div>
	<input type="hidden" name="role_id" id="role_id" value="{BEESCRM:$role_id}">
	<input type="hidden" name="conf_id" id="conf_id" value="{BEESCRM:$conf_id}">
	<div>
		<div class="container text-center clearfix tab">
			<if condition="$role_id eq 1">
				<div class="tab-list third-list <if condition="$status eq 1">actived</if>">
					<a href="/base/PrintTaking/orderCenter/conf_id/{BEESCRM:$conf_id}/status/1">待确认</a>
				</div>
				<div class="tab-list third-list <if condition="$status eq 2">actived</if>">
					<a href="/base/PrintTaking/orderCenter/conf_id/{BEESCRM:$conf_id}/status/2">待处理</a>
				</div>
				<div class="tab-list third-list <if condition="$status eq 3">actived</if>">
					<a href="/base/PrintTaking/orderCenter/conf_id/{BEESCRM:$conf_id}/status/3">已处理</a>
				</div>
				<!-- 技术人员 -->
			<elseif condition="$role_id eq 2" />
				<div class="tab-list third-list <if condition="$status eq 1">actived</if>">
					<a href="/base/PrintTaking/orderCenter/conf_id/{BEESCRM:$conf_id}/status/1">待确认</a>
				</div>
				<div class="tab-list third-list <if condition="$status eq 2">actived</if>">
					<a href="/base/PrintTaking/orderCenter/conf_id/{BEESCRM:$conf_id}/status/2">待处理</a>
				</div>
				<div class="tab-list third-list <if condition="$status egt 5">actived</if>">
					<a href="/base/PrintTaking/orderCenter/conf_id/{BEESCRM:$conf_id}/status/5">已处理</a>
				</div>
			<elseif condition="$role_id eq 3" />
				<div class="tab-list third-list <if condition="$status eq 2">actived</if>">
					<a href="/base/PrintTaking/orderCenter/conf_id/{BEESCRM:$conf_id}/status/2">待确认</a>
				</div>
				<div class="tab-list third-list <if condition="$status eq 3">actived</if>">
					<a href="/base/PrintTaking/orderCenter/conf_id/{BEESCRM:$conf_id}/status/3">待制作</a>
				</div>
				<div class="tab-list third-list <if condition="$status eq 4">actived</if>">
					<a href="/base/PrintTaking/orderCenter/conf_id/{BEESCRM:$conf_id}/status/4">已制作</a>
				</div>
			<elseif condition="$role_id eq 4" />
				<div class="tab-list third-list <if condition="$status eq 3">actived</if>">
					<a href="/base/PrintTaking/orderCenter/conf_id/{BEESCRM:$conf_id}/status/3">待确认</a>
				</div>
				<div class="tab-list third-list <if condition="$status eq 4">actived</if>">
					<a href="/base/PrintTaking/orderCenter/conf_id/{BEESCRM:$conf_id}/status/4">待配送</a>
				</div>
				<div class="tab-list third-list <if condition="$status eq 5">actived</if>">
					<a href="/base/PrintTaking/orderCenter/conf_id/{BEESCRM:$conf_id}/status/5">已配送</a>
				</div>	
			</if>
			<!--  
			<div class="tab-list third-list actived"><a href="#">图文制作</a></div>
			<div class="tab-list third-list"><a href="#">电脑维修</a></div>
			<div class="tab-list third-list"><a href="#">耗材配送</a></div>
		</div>
		<!--两个tab-->
		<!--<div class="container text-center clearfix tab">
			<div class="tab-list two-list actived"><a href="#">已接单</a></div>
			<div class="tab-list two-list"><a href="#">待确认</a></div>
		</div>-->
	</div>
	<!-- 根据不同角色显示已设计 已制作 已配送 已维修的订单 -->
	<!--<div class="summary">-->
		<!--<div class="summary-tab clearfix">-->
			<!--<a href="#" class="third-list" id="clendar">-->
				<!--<empty name="$starttime"><php>echo date('Y年m月');</php>-->
					<!--<else />{BEESCRM:$starttime|date='Y年m月',###}-->
				<!--</empty>-->
				<!--<span class="iconfont icon-wodedingdan18"></span>-->
			<!--</a>-->
			<!--<div class="third-list text-center">-->
				<!--当月订单{BEESCRM:$currentMonthOrderCount}笔-->
			<!--</div>-->
			<!--<div class="third-list text-right">-->
				<!--总订单{BEESCRM:$countOrder}笔-->
			<!--</div>-->
			<!--<div class="clendar">-->
				<!--<a href="/base/PrintTaking/orderCenter/conf_id/{BEESCRM:$conf_id}/status/{BEESCRM:$status}"><php>echo date('Y年m月');</php></a>-->
				<!--<volist name="months" id="vo">-->
					<!--<a href="/base/PrintTaking/orderCenter/conf_id/{BEESCRM:$conf_id}/status/{BEESCRM:$status}/starttime/{BEESCRM:$vo}">{BEESCRM:$vo|date='Y年m月',###}</a>-->
				<!--</volist>-->
			<!--</div>-->
		<!--</div>-->
		<!--&lt;!&ndash; -->
		<!--<div class="summary-tab clearfix">-->
			<!--<div class="text-center">2016年4月 | 接单数 40</div>-->
		<!--</div>-->
		 <!--&ndash;&gt;-->
	<!--</div>-->
	<div class="summary">
		<div class="summary-tab clearfix">
			<a href="#" class="third-list" id="clendar">{BEESCRM:$starttime|date='Y年m月',###}<span class="iconfont icon-wodedingdan18"></span></a>
			<div class="third-list text-center">当月订单{BEESCRM:$currentMonthOrderCount}笔</div>
			<div class="third-list text-right">总订单数 {BEESCRM:$countOrder}</div>
			<div class="clendar">
				<a href="/base/PrintTaking/ordercenter/conf_id/{BEESCRM:$conf_id}/status/{BEESCRM:$status}"><php>echo date('Y年m月');</php></a>
				<volist name="months" id="vo">
					<a href="/base/PrintTaking/ordercenter/conf_id/{BEESCRM:$conf_id}/status/{BEESCRM:$status}/starttime/{BEESCRM:$vo}">{BEESCRM:$vo|date='Y年m月',###}</a>
				</volist>
			</div>
		</div>
	</div>
	<!--没有记录-->
	<empty name="orderList">
	<div class="norecord">
		<img src="/assets/base/print/images/notrade.png" />
		<p class="text-grey">还没订单哦</p>
	</div>
	<else />
	
	<div>
		<foreach name="orderList" item="vo">
		<div class="lists">
			<div class="list-line clearfix">
			  	<!-- 用户已下单 -->
				<if condition="$role_id eq 1 and $vo.status eq 1">
					<span class="text-orange">未接单</span><span class="pull-right text-grey">{BEESCRM:$vo.create_time|date='Y-m-d H:i:s',###}</span>
				<elseif condition="$role_id eq 1 and $vo.status eq 2" />
					<span class="text-orange">技术处理中</span><span class="pull-right text-grey">{BEESCRM:$vo.create_time|date='Y-m-d H:i:s',###}</span>
				<elseif condition="($role_id eq 1 and $vo.status egt 3)" />
					<if condition="$vo.order_type eq 1 and $vo.status egt 3">
						<span class="text-green">处理完成</span><span class="pull-right text-grey">{BEESCRM:$vo.create_time|date='Y-m-d H:i:s',###}</span>
					<elseif condition="$vo.order_type eq 3 and $vo.status egt 3" />
						<span class="text-green">{BEESCRM:$vo.statusTips}</span><span class="pull-right text-grey">{BEESCRM:$vo.create_time|date='Y-m-d H:i:s',###}</span>
					</if>
				<elseif condition="$role_id eq 2 and $vo.status eq 1" />
					<span class="text-orange">未接单</span><span class="pull-right text-grey">{BEESCRM:$vo.create_time|date='Y-m-d H:i:s',###}</span>
				<elseif condition="$role_id eq 2 and $vo.status eq 2" />
					<span class="text-orange">技术处理中</span><span class="pull-right text-grey">{BEESCRM:$vo.create_time|date='Y-m-d H:i:s',###}</span>
				<elseif condition="$role_id eq 2 and $vo.status egt 4" />
					<!-- 根据订单类型 显示处理完成或者安装配送中 -->
					<if condition="$vo.order_type eq 3 and $vo.status egt 4">
						<span class="text-green">{BEESCRM:$vo.statusTips}</span><span class="pull-right text-grey">{BEESCRM:$vo.create_time|date='Y-m-d H:i:s',###}</span>
						<!--电脑维修类订单-->
					<elseif condition="$vo.order_type eq 2 and $vo.status egt 5" />
						<span class="text-green">处理完成</span><span class="pull-right text-grey">{BEESCRM:$vo.create_time|date='Y-m-d H:i:s',###}</span>
					</if>
				<elseif condition="$role_id eq 3 and $vo.status eq 2" />
					<span class="text-orange">未接单</span><span class="pull-right text-grey">{BEESCRM:$vo.create_time|date='Y-m-d H:i:s',###}</span>
				<elseif condition="$role_id eq 3 and $vo.status eq 3" />
					<span class="text-orange">正在制作中</span><span class="pull-right text-grey">{BEESCRM:$vo.create_time|date='Y-m-d H:i:s',###}</span>
				<elseif condition="$role_id eq 3 and $vo.status egt 4" />
					<span class="text-green">制作完成</span><span class="pull-right text-grey">{BEESCRM:$vo.create_time|date='Y-m-d H:i:s',###}</span>
				<elseif condition="$role_id eq 4 and $vo.status eq 3" />
					<span class="text-orange">未接单</span><span class="pull-right text-grey">{BEESCRM:$vo.create_time|date='Y-m-d H:i:s',###}</span>
				<elseif condition="$role_id eq 4 and $vo.status eq 4" />
					<span class="text-orange">正在配送中</span><span class="pull-right text-grey">{BEESCRM:$vo.create_time|date='Y-m-d H:i:s',###}</span>
				<elseif condition="($role_id eq 4 and $vo.status egt 5)" />
					<span class="text-green">配送完成</span><span class="pull-right text-grey">{BEESCRM:$vo.create_time|date='Y-m-d H:i:s',###}</span>
				</if>
			</div>
	
			<a href="/base/PrintTaking/orderDetail/conf_id/{BEESCRM:$conf_id}/order_id/{BEESCRM:$vo.order_id}/status/{BEESCRM:$vo.status}/cut_off/{BEESCRM:$vo.cut_off}/order_type/{BEESCRM:$vo.order_type}/client_id/{BEESCRM:$vo.client_id}" class="text-12 list-line">
				<p>下单人：{BEESCRM:$clientList[$vo['client_id']]['client_name']}</p>
				<p>联系方式：{BEESCRM:$clientList[$vo['client_id']]['tel']} <notempty name="$clientList[$vo['client_id']]['office_tel']">/ {BEESCRM:$clientList[$vo['client_id']]['office_tel']}</notempty></p>
				<p>订单描述：{BEESCRM:$vo['order_content']|mb_substr=0,100,"utf-8"}......</p>
			</a>
			<!-- 我要接单 -->
			<if condition="$role_id eq 1 AND $vo.status eq 1">
			<div class="list-line small-btn text-right">
				<a href="/base/PrintTaking/orderDetail/conf_id/{BEESCRM:$conf_id}/order_id/{BEESCRM:$vo.order_id}/status/{BEESCRM:$vo.status}/cut_off/{BEESCRM:$vo.cut_off}/order_type/{BEESCRM:$vo.order_type}/client_id/{BEESCRM:$vo.client_id}" class="btn white-btn">查看详情</a>
				<a href="javascript:void(0);" class="btn bg-green design" data-order_id="{BEESCRM:$vo.order_id}" data-order_type="{BEESCRM:$vo.order_type}" data-client_id="{BEESCRM:$vo.client_id}" data-order_content="{BEESCRM:$vo.order_content}" data-conf_id="{BEESCRM:$conf_id}">{BEESCRM:$button[1]}</a>
			</div>
			</if>
			
			<!-- 设计完成  -->
			<if condition="($role_id eq 1) AND ($vo.status eq 2)">
				<div class="list-line small-btn text-right">
					<a href="/base/PrintTaking/orderDetail/conf_id/{BEESCRM:$conf_id}/order_id/{BEESCRM:$vo.order_id}/status/{BEESCRM:$vo.status}/cut_off/{BEESCRM:$vo.cut_off}/order_type/{BEESCRM:$vo.order_type}/client_id/{BEESCRM:$vo.client_id}" class="btn white-btn">查看详情</a>
					<a href="javascript:void(0)" class="btn bg-green dispatch" data-order_id="{BEESCRM:$vo.order_id}" data-order_type="{BEESCRM:$vo.order_type}" data-client_id="{BEESCRM:$vo.client_id}" data-order_content="{BEESCRM:$vo.order_content}" data-conf_id="{BEESCRM:$conf_id}">{BEESCRM:$button[2]}</a>
					<input type="hidden" name="role_id"  value="{BEESCRM:$role_id}" />
				</div>
			</if>
			<if condition="($role_id eq 1) AND ($vo.status gt 2)">
				<div class="list-line small-btn text-right">
					<a href="/base/PrintTaking/orderDetail/conf_id/{BEESCRM:$conf_id}/order_id/{BEESCRM:$vo.order_id}/status/{BEESCRM:$vo.status}/cut_off/{BEESCRM:$vo.cut_off}/order_type/{BEESCRM:$vo.order_type}/client_id/{BEESCRM:$vo.client_id}" class="btn white-btn">查看详情</a>
					<input type="hidden" name="conf_id" value="{BEESCRM:$conf_id}" />
				</div>
			</if>
			<if condition="($role_id eq 2) AND ($vo.status eq 1)">
			<!-- 技术人员  我要接单 -->
			<div class="list-line small-btn text-right">
				<a href="/base/PrintTaking/orderDetail/conf_id/{BEESCRM:$conf_id}/order_id/{BEESCRM:$vo.order_id}/status/{BEESCRM:$vo.status}/cut_off/{BEESCRM:$vo.cut_off}/order_type/{BEESCRM:$vo.order_type}/client_id/{BEESCRM:$vo.client_id}" class="btn white-btn">查看详情</a>
				<a href="javascript:void(0);" class="btn bg-green dorepair" data-order_id="{BEESCRM:$vo.order_id}" data-order_type="{BEESCRM:$vo.order_type}" data-client_id="{BEESCRM:$vo.client_id}" data-order_content="{BEESCRM:$vo.order_content}" data-conf_id="{BEESCRM:$conf_id}">{BEESCRM:$button[1]}</a>
			</div>
			</if>
			<if condition="($role_id eq 2) AND ($vo.status eq 2)">
			<!-- 技术人员  维修完成 即状态在安装配送中-->
				<!-- 维修类的订单 -->
				<if condition="$vo.order_type eq 2">
					<div class="list-line small-btn text-right">
						<a href="/base/PrintTaking/orderDetail/conf_id/{BEESCRM:$conf_id}/order_id/{BEESCRM:$vo.order_id}/status/{BEESCRM:$vo.status}/cut_off/{BEESCRM:$vo.cut_off}/order_type/{BEESCRM:$vo.order_type}/client_id/{BEESCRM:$vo.client_id}" class="btn white-btn">查看详情</a>
						<a href="javascript:void(0)" class="btn bg-green repair" data-order_id="{BEESCRM:$vo.order_id}" data-order_type="{BEESCRM:$vo.order_type}" data-client_id="{BEESCRM:$vo.client_id}" data-order_content="{BEESCRM:$vo.order_content}" data-conf_id="{BEESCRM:$conf_id}">{BEESCRM:$button[2]}</a>
					</div>
					<!-- 如果是耗材配送类的订单 则技术人员需要指定由谁来配送 -->
				<elseif condition="$vo.order_type eq 3" />
					<div class="list-line small-btn text-right">
						<a href="/base/PrintTaking/orderDetail/conf_id/{BEESCRM:$conf_id}/order_id/{BEESCRM:$vo.order_id}/status/{BEESCRM:$vo.status}/cut_off/{BEESCRM:$vo.cut_off}/order_type/{BEESCRM:$vo.order_type}/client_id/{BEESCRM:$vo.client_id}" class="btn white-btn">查看详情</a>
						<a href="javascript:void(0)" class="btn bg-green dispatch" data-order_id="{BEESCRM:$vo.order_id}" data-order_type="{BEESCRM:$vo.order_type}" data-client_id="{BEESCRM:$vo.client_id}" data-order_content="{BEESCRM:$vo.order_content}" data-conf_id="{BEESCRM:$conf_id}">{BEESCRM:$button[2]}</a>
						<input type="hidden" name="role_id"  value="{BEESCRM:$role_id}" />
					</div>
				</if>
			</if>
			<if condition="($role_id eq 2) AND ($vo.status egt 4)">
			<div class="list-line small-btn text-right">
				<a href="/base/PrintTaking/orderDetail/conf_id/{BEESCRM:$conf_id}/order_id/{BEESCRM:$vo.order_id}/status/{BEESCRM:$vo.status}/cut_off/{BEESCRM:$vo.cut_off}/order_type/{BEESCRM:$vo.order_type}/client_id/{BEESCRM:$vo.client_id}" class="btn white-btn">查看详情</a>
				<input type="hidden" name="conf_id" value="{BEESCRM:$conf_id}" />
			</div>
			</if>
			<!-- 制作人员 -->
			<if condition="($role_id eq 3) AND ($vo.status eq 2)">
			<div class="list-line small-btn text-right">
				<a href="/base/PrintTaking/orderDetail/conf_id/{BEESCRM:$conf_id}/order_id/{BEESCRM:$vo.order_id}/status/{BEESCRM:$vo.status}/cut_off/{BEESCRM:$vo.cut_off}/order_type/{BEESCRM:$vo.order_type}/client_id/{BEESCRM:$vo.client_id}" class="btn white-btn">查看详情</a>
				<a href="/base/PrintTaking/takingOrder/conf_id/{BEESCRM:$conf_id}/order_id/{BEESCRM:$vo.order_id}/order_type/{BEESCRM:$vo.order_type}/client_id/{BEESCRM:$vo.client_id}" class="btn bg-green">{BEESCRM:$button[1]}</a>
			<!-- <a href="javascript:void(0)" class="btn bg-green" id="">{BEESCRM:$button[1]}</a>  -->
				<input type="hidden" name="conf_id" value="{BEESCRM:$conf_id}" />
			</div>
			</if>
			<!-- 待制作  制作完成按钮-->
			<if condition="($role_id eq 3) AND ($vo.status eq 3)">
			<div class="list-line small-btn text-right">
				<a href="/base/PrintTaking/orderDetail/conf_id/{BEESCRM:$conf_id}/order_id/{BEESCRM:$vo.order_id}/status/{BEESCRM:$vo.status}/cut_off/{BEESCRM:$vo.cut_off}/order_type/{BEESCRM:$vo.order_type}/client_id/{BEESCRM:$vo.client_id}" class="btn white-btn">查看详情</a>
				<a href="javascript:void(0)" class="btn bg-green make" data-order_id="{BEESCRM:$vo.order_id}" data-order_type="{BEESCRM:$vo.order_type}" data-client_id="{BEESCRM:$vo.client_id}" data-order_content="{BEESCRM:$vo.order_content}" data-conf_id="{BEESCRM:$conf_id}">{BEESCRM:$button[2]}</a>
				<input type="hidden" name="role_id"  value="{BEESCRM:$role_id}" />
			</div>
			</if>
			<if condition="($role_id eq 3) AND ($vo.status egt 4)">
			<div class="list-line small-btn text-right"> 
				<a href="/base/PrintTaking/orderDetail/conf_id/{BEESCRM:$conf_id}/order_id/{BEESCRM:$vo.order_id}/status/{BEESCRM:$vo.status}/cut_off/{BEESCRM:$vo.cut_off}/order_type/{BEESCRM:$vo.order_type}/client_id/{BEESCRM:$vo.client_id}" class="btn white-btn">查看详情</a>
				<input type="hidden" name="conf_id" value="{BEESCRM:$conf_id}" />
			</div>
			<!-- 配送人员 -->
			</if>
			<if condition="($role_id eq 4) AND ($vo.status eq 3)">
			<div class="list-line small-btn text-right"> 
				<a href="/base/PrintTaking/orderDetail/conf_id/{BEESCRM:$conf_id}/order_id/{BEESCRM:$vo.order_id}/status/{BEESCRM:$vo.status}/cut_off/{BEESCRM:$vo.cut_off}/order_type/{BEESCRM:$vo.order_type}/client_id/{BEESCRM:$vo.client_id}" class="btn white-btn">查看详情</a>
				<a href="/base/PrintTaking/takingOrder/conf_id/{BEESCRM:$conf_id}/order_id/{BEESCRM:$vo.order_id}/order_type/{BEESCRM:$vo.order_type}/client_id/{BEESCRM:$vo.client_id}" class="btn white-green" id="">{BEESCRM:$button[1]}</a>
				<input type="hidden" name="conf_id" value="{BEESCRM:$conf_id}" />
			</div>
			</if>
			<if condition="$role_id eq 4 AND $vo.status eq 4">
				<div class="list-line small-btn text-right" data-conf_id="{BEESCRM:$vo.order_id}" data-order_type="{BEESCRM:$vo.order_type}" data-client_id="{BEESCRM:$vo.client_id}" data-confid="{BEESCRM:$conf_id}">
					<!-- 配送完成是否上传附件 -->
					<a href="/base/PrintTaking/orderDetail/conf_id/{BEESCRM:$conf_id}/order_id/{BEESCRM:$vo.order_id}/status/{BEESCRM:$vo.status}/cut_off/{BEESCRM:$vo.cut_off}/order_type/{BEESCRM:$vo.order_type}/client_id/{BEESCRM:$vo.client_id}" class="btn white-btn">查看详情</a>
					<a href="javascript:void(0)" class="btn bg-green uploadfile" data-order_id="{BEESCRM:$vo.order_id}" data-order_type="{BEESCRM:$vo.order_type}" data-client_id="{BEESCRM:$vo.client_id}" data-order_content="{BEESCRM:$vo.order_content}" data-conf_id="{BEESCRM:$conf_id}" data-cut_off="{BEESCRM:$vo.cut_off}">{BEESCRM:$button[2]}</a>
				</div>
			</if>
			<if condition="($role_id eq 4) AND ($vo.status egt 5)">
			<div class="list-line small-btn text-right" data-conf_id="{BEESCRM:$conf_id}">
				<a href="/base/PrintTaking/orderDetail/conf_id/{BEESCRM:$conf_id}/order_id/{BEESCRM:$vo.order_id}/status/{BEESCRM:$vo.status}/cut_off/{BEESCRM:$vo.cut_off}/order_type/{BEESCRM:$vo.order_type}/client_id/{BEESCRM:$vo.client_id}" class="btn white-btn">查看详情</a>
			</div>
			</if>
		</div>
		</foreach>
	</div>
	<div class="layer-wraper dispatchuser" style="display:none;">
		<div class="main">
			<div class="container">
				<div class="lists" id="check">
				是否指派角色<span class="pull-right"><span class="text-grey" id="yesorno">是</span> <span class="iconfont icon-xuanze1 text-normal"></span></span>
				</div>
				<div class="form-list clearfix"><span class="field pull-left">角色</span>
					<select name="role" class="pull-right role-name" id="role-select">
						<option value="0">请选择角色</option>
					</select>
					<span class="iconfont icon-wodedingdan18"></span>
				</div>
				<div class="form-list clearfix"><span class="field pull-left">名称</span>
					<select name="rolename" class="pull-right role-name" id="name-select">
						<option value="0">请选择员工姓名</option>
					</select>
					<span class="iconfont icon-wodedingdan18"></span>
				</div>
			</div>
			<div class="pop-btn">
				<a href="javascript:void(0)" class="btn cancel">取消</a>
				<a href="javascript:void(0)" class="btn gray-btn error-submit" data-conf_id="{BEESCRM:$conf_id}">确定</a>
			</div>
		</div>
	</div>
	</empty>
</div>
<!--  配送人员上传图片的弹窗
<div class="upload layer-wraper" style="display: none">
-->
<!-- 维修类订单 如果维修完成 弹出弹窗先确认是否处理完成，给个取消和确定的按钮，取消就留在该页面，确定就改变订单状态-->


<div class="layer-wraper repair-finish" style="display:none">
	<div class="main">
		<p class="title">是否确认处理完成？</p>
		<div class="pop-btn">
			<a href="javascript:void(0)" class="btn cancel">取消</a>
			<a href="javascript:void(0)" class="btn green-btn error-submit">确定</a>
		</div>
	</div>
</div>


<if condition="$role_id eq 4">
<div class="upload layer-wraper" style="display: none">
	<div class="main">
		<p class="title">上传图片（可以选择不上传）</p>
		<textarea placeholder="请简要描述您的问题" id="content" value="" name="content"></textarea>
		<div class="clearfix upload-img">
			<p class="imgbox" id="selectedPicture">
				<span class="iconfont icon-tupiantianjia"></span>
				<input class="file-input" type="file" name="upload-file" id="fileupload_input" value="" />
			</p>
			<p class="imgbox">
				<img src="" class="picture" />
			</p>
		</div>
		<div class="pop-btn">
			<a href="javascript:void(0);" class="btn cancel">取消</a>
			<a href="javascript:void(0);" class="btn green-btn upload-submit" data-conf_id="{BEESCRM:$conf_id}">确认提交</a>
		</div>
	</div>
</div>
</if>
<script type="text/javascript" src="/assets/base/repair/js/jquery-2.1.0.min.js"></script>
<script type="text/javascript" src="/assets/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/assets/bower_components/upload/jquery.ui.widget.js"></script>
<script type="text/javascript" src="/assets/bower_components/upload/jquery.fileupload.js"></script>
<script type="text/javascript" src="/assets/bower_components/upload/jquery.iframe-transport.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$("#fileupload_input").fileupload({
			url: "/base/common/upload",//文件上传地址，当然也可以直接写在input的data-url属性内
//			beforeSend: function () {
//				$('.load').show();
//			},
			done: function (e, result) {
				//done方法就是上传完毕的回调函数，其他回调函数可以自行查看api
				//注意result要和jquery的ajax的data参数区分，这个对象包含了整个请求信息
				//返回的数据在result.result中，假设我们服务器返回了一个json对象
				var data = $.parseJSON(result.result);
				if (data.status == 'S') {
					$('.picture').attr('src', data.url);
//					setTimeout($('.load').hide(), 3000);
				} else {
					$.alert('error', data.message);
//					setTimeout($('.load').hide(), 3000);
					return false;
				}
			}
		});
	});
</script>
<include file="footer" />